<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>利用new object方式创建对象</title>
		<script type="text/javascript">
			var obj = new Object();
			obj.username = '鸣人';
			obj.sex = '男';
			obj.age = 18;
			obj.skill = function(sing) {
				console.log(sing);
			}
			console.log(obj.username);
			console.log(obj['sex']);
			console.log(obj['age']);
			obj.skill('唱歌');
		</script>
	</head>
	<body>
	</body>
</html>
